package com.anycl.design.behavioral.visitor;

import java.util.List;

public class ObjectStructure {
    private List<Element> elements;

    public ObjectStructure(List<Element> elements) {
        this.elements = elements;
    }

    public void show(Visitor visitor) {
        for (Element element: elements)
            element.accept(visitor);
    }
}
